<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Qwt User&#39;s Guide: qwt_text.cpp Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Qwt User&#39;s Guide
   &#160;<span id="projectnumber">6.2.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('qwt__text_8cpp_source.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">qwt_text.cpp</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/******************************************************************************</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> * Qwt Widget Library</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> * Copyright (C) 1997   Josef Wilgen</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> * Copyright (C) 2002   Uwe Rathmann</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> * This library is free software; you can redistribute it and/or</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> * modify it under the terms of the Qwt License, Version 1.0</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> *****************************************************************************/</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160; </div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="preprocessor">#include &quot;qwt_text.h&quot;</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="preprocessor">#include &quot;qwt_painter.h&quot;</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="preprocessor">#include &quot;qwt_text_engine.h&quot;</span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="preprocessor">#include &quot;qwt_math.h&quot;</span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160; </div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="preprocessor">#include &lt;qmap.h&gt;</span></div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="preprocessor">#include &lt;qfont.h&gt;</span></div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="preprocessor">#include &lt;qcolor.h&gt;</span></div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="preprocessor">#include &lt;qpen.h&gt;</span></div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="preprocessor">#include &lt;qbrush.h&gt;</span></div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="preprocessor">#include &lt;qpainter.h&gt;</span></div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160; </div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="preprocessor">#if QT_VERSION &gt;= 0x050200</span></div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160; </div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="keyword">static</span> <a class="code" href="class_qwt_text.html">QwtText</a> qwtStringToText( <span class="keyword">const</span> QString&amp; text )</div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;{</div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="class_qwt_text.html">QwtText</a>( text );</div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;}</div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160; </div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160; </div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="keyword">namespace</span></div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;{</div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;    <span class="keyword">static</span> <span class="keyword">const</span> <span class="keyword">struct </span>RegisterQwtText</div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;    {</div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;        <span class="keyword">inline</span> RegisterQwtText()</div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;        {</div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;            qRegisterMetaType&lt; QwtText &gt;();</div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160; </div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;<span class="preprocessor">#if QT_VERSION &gt;= 0x050200</span></div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;            QMetaType::registerConverter&lt; QString, QwtText &gt;( qwtStringToText );</div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;        }</div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160; </div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;    } qwtRegisterQwtText;</div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;}</div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160; </div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;<span class="keyword">namespace</span></div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;{</div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;    <span class="keyword">class </span>TextEngineDict</div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;    {</div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;      <span class="keyword">public</span>:</div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;        <span class="keyword">static</span> TextEngineDict&amp; dict();</div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160; </div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;        <span class="keywordtype">void</span> setTextEngine( <a class="code" href="class_qwt_text.html#a63e0d6a59a427a37ed0bfa71b782fd76">QwtText::TextFormat</a>, <a class="code" href="class_qwt_text_engine.html">QwtTextEngine</a>* );</div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160; </div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;        <span class="keyword">const</span> <a class="code" href="class_qwt_text_engine.html">QwtTextEngine</a>* textEngine( <a class="code" href="class_qwt_text.html#a63e0d6a59a427a37ed0bfa71b782fd76">QwtText::TextFormat</a> ) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;        <span class="keyword">const</span> <a class="code" href="class_qwt_text_engine.html">QwtTextEngine</a>* textEngine( <span class="keyword">const</span> QString&amp;,</div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;            <a class="code" href="class_qwt_text.html#a63e0d6a59a427a37ed0bfa71b782fd76">QwtText::TextFormat</a> ) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160; </div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;      <span class="keyword">private</span>:</div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;        TextEngineDict();</div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;        ~TextEngineDict();</div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160; </div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;        <span class="keyword">typedef</span> <a class="code" href="class_q_map.html">QMap&lt; int, QwtTextEngine* &gt;</a> EngineMap;</div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160; </div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;        <span class="keyword">inline</span> <span class="keyword">const</span> <a class="code" href="class_qwt_text_engine.html">QwtTextEngine</a>* engine( EngineMap::const_iterator&amp; it )<span class="keyword"> const</span></div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;<span class="keyword">        </span>{</div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;            <span class="keywordflow">return</span> it.value();</div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;        }</div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160; </div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;        EngineMap m_map;</div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;    };</div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160; </div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;    TextEngineDict&amp; TextEngineDict::dict()</div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;    {</div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;        <span class="keyword">static</span> TextEngineDict engineDict;</div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;        <span class="keywordflow">return</span> engineDict;</div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;    }</div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160; </div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;    TextEngineDict::TextEngineDict()</div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;    {</div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;        m_map.insert( <a class="code" href="class_qwt_text.html#a63e0d6a59a427a37ed0bfa71b782fd76aa6810f6d3c785c202d2507c601b97787">QwtText::PlainText</a>, <span class="keyword">new</span> <a class="code" href="class_qwt_plain_text_engine.html">QwtPlainTextEngine</a>() );</div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;<span class="preprocessor">    #ifndef QT_NO_RICHTEXT</span></div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;        m_map.insert( <a class="code" href="class_qwt_text.html#a63e0d6a59a427a37ed0bfa71b782fd76a88f7eee487ce6f7769b67494623d8b79">QwtText::RichText</a>, <span class="keyword">new</span> <a class="code" href="class_qwt_rich_text_engine.html">QwtRichTextEngine</a>() );</div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;<span class="preprocessor">    #endif</span></div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;    }</div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160; </div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;    TextEngineDict::~TextEngineDict()</div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;    {</div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;        <span class="keywordflow">for</span> ( EngineMap::const_iterator it = m_map.constBegin();</div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;            it != m_map.constEnd(); ++it )</div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;        {</div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;            <span class="keyword">const</span> <a class="code" href="class_qwt_text_engine.html">QwtTextEngine</a>* textEngine = engine( it );</div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;            <span class="keyword">delete</span> textEngine;</div>
<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;        }</div>
<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;    }</div>
<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160; </div>
<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;    <span class="keyword">const</span> <a class="code" href="class_qwt_text_engine.html">QwtTextEngine</a>* TextEngineDict::textEngine( <span class="keyword">const</span> QString&amp; text,</div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;        <a class="code" href="class_qwt_text.html#a63e0d6a59a427a37ed0bfa71b782fd76">QwtText::TextFormat</a> format )<span class="keyword"> const</span></div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;<span class="keyword">    </span>{</div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;        <span class="keywordflow">if</span> ( format == <a class="code" href="class_qwt_text.html#a63e0d6a59a427a37ed0bfa71b782fd76a0645d333081ec9e3574c98f510c284a1">QwtText::AutoText</a> )</div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;        {</div>
<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;            <span class="keywordflow">for</span> ( EngineMap::const_iterator it = m_map.begin();</div>
<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;                it != m_map.end(); ++it )</div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;            {</div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;                <span class="keywordflow">if</span> ( it.key() != <a class="code" href="class_qwt_text.html#a63e0d6a59a427a37ed0bfa71b782fd76aa6810f6d3c785c202d2507c601b97787">QwtText::PlainText</a> )</div>
<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;                {</div>
<div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;                    <span class="keyword">const</span> <a class="code" href="class_qwt_text_engine.html">QwtTextEngine</a>* e = engine( it );</div>
<div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;                    <span class="keywordflow">if</span> ( e &amp;&amp; e-&gt;<a class="code" href="class_qwt_text_engine.html#a98316f2f6f4f50216ceffbe9babe2901">mightRender</a>( text ) )</div>
<div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;                        <span class="keywordflow">return</span> e;</div>
<div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;                }</div>
<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;            }</div>
<div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;        }</div>
<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160; </div>
<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;        EngineMap::const_iterator it = m_map.find( format );</div>
<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;        <span class="keywordflow">if</span> ( it != m_map.end() )</div>
<div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;        {</div>
<div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;            <span class="keyword">const</span> <a class="code" href="class_qwt_text_engine.html">QwtTextEngine</a>* e = engine( it );</div>
<div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;            <span class="keywordflow">if</span> ( e )</div>
<div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;                <span class="keywordflow">return</span> e;</div>
<div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;        }</div>
<div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160; </div>
<div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;        it = m_map.find( <a class="code" href="class_qwt_text.html#a63e0d6a59a427a37ed0bfa71b782fd76aa6810f6d3c785c202d2507c601b97787">QwtText::PlainText</a> );</div>
<div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;        <span class="keywordflow">return</span> engine( it );</div>
<div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;    }</div>
<div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160; </div>
<div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;    <span class="keywordtype">void</span> TextEngineDict::setTextEngine( <a class="code" href="class_qwt_text.html#a63e0d6a59a427a37ed0bfa71b782fd76">QwtText::TextFormat</a> format,</div>
<div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;        <a class="code" href="class_qwt_text_engine.html">QwtTextEngine</a>* engine )</div>
<div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;    {</div>
<div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;        <span class="keywordflow">if</span> ( format == <a class="code" href="class_qwt_text.html#a63e0d6a59a427a37ed0bfa71b782fd76a0645d333081ec9e3574c98f510c284a1">QwtText::AutoText</a> )</div>
<div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;            <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160; </div>
<div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;        <span class="keywordflow">if</span> ( format == <a class="code" href="class_qwt_text.html#a63e0d6a59a427a37ed0bfa71b782fd76aa6810f6d3c785c202d2507c601b97787">QwtText::PlainText</a> &amp;&amp; engine == NULL )</div>
<div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;            <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160; </div>
<div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;        EngineMap::const_iterator it = m_map.constFind( format );</div>
<div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;        <span class="keywordflow">if</span> ( it != m_map.constEnd() )</div>
<div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;        {</div>
<div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;            <span class="keyword">delete</span> this-&gt;engine( it );</div>
<div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;            m_map.remove( format );</div>
<div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;        }</div>
<div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160; </div>
<div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;        <span class="keywordflow">if</span> ( engine != NULL )</div>
<div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;            m_map.insert( format, engine );</div>
<div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;    }</div>
<div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160; </div>
<div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;    <span class="keyword">const</span> <a class="code" href="class_qwt_text_engine.html">QwtTextEngine</a>* TextEngineDict::textEngine(</div>
<div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;        <a class="code" href="class_qwt_text.html#a63e0d6a59a427a37ed0bfa71b782fd76">QwtText::TextFormat</a> format )<span class="keyword"> const</span></div>
<div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;<span class="keyword">    </span>{</div>
<div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;        <span class="keyword">const</span> <a class="code" href="class_qwt_text_engine.html">QwtTextEngine</a>* e = NULL;</div>
<div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160; </div>
<div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;        EngineMap::const_iterator it = m_map.find( format );</div>
<div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;        <span class="keywordflow">if</span> ( it != m_map.end() )</div>
<div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;            e = engine( it );</div>
<div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160; </div>
<div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;        <span class="keywordflow">return</span> e;</div>
<div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;    }</div>
<div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;}</div>
<div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160; </div>
<div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;<span class="keyword">class </span>QwtText::PrivateData</div>
<div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;{</div>
<div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;  <span class="keyword">public</span>:</div>
<div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;    PrivateData():</div>
<div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;        <a class="code" href="class_qwt_text.html#a4284800d239934818c1951381ff52d05">renderFlags</a>( Qt::AlignCenter ),</div>
<div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;        <a class="code" href="class_qwt_text.html#a5d75098c287af25e35111c73f166d3ce">borderRadius</a>( 0 ),</div>
<div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;        <a class="code" href="class_qwt_text.html#afa094ef46da5cc2856538297a249e65f">borderPen</a>( Qt::NoPen ),</div>
<div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;        <a class="code" href="class_qwt_text.html#a0f23d507c59b16d81b96ecf1e79131a8">backgroundBrush</a>( Qt::NoBrush ),</div>
<div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;        <a class="code" href="class_qwt_text.html#a053d8fdb4de77bd3b6f2eb0ecd3980ca">textEngine</a>( NULL )</div>
<div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;    {</div>
<div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;    }</div>
<div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160; </div>
<div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;    <span class="keywordtype">int</span> <a class="code" href="class_qwt_text.html#a4284800d239934818c1951381ff52d05">renderFlags</a>;</div>
<div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;    QString <a class="code" href="class_qwt_text.html#ad94fd632f61b1e5d9f68ce65c445982e">text</a>;</div>
<div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;    QFont <a class="code" href="class_qwt_text.html#a67039ac189d3a9683801851ac70e87a6">font</a>;</div>
<div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160;    QColor <a class="code" href="class_qwt_text.html#a731bc1eca7825f55f3026f840c0fa42f">color</a>;</div>
<div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160;    <span class="keywordtype">double</span> <a class="code" href="class_qwt_text.html#a5d75098c287af25e35111c73f166d3ce">borderRadius</a>;</div>
<div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160;    QPen <a class="code" href="class_qwt_text.html#afa094ef46da5cc2856538297a249e65f">borderPen</a>;</div>
<div class="line"><a name="l00178"></a><span class="lineno">  178</span>&#160;    QBrush <a class="code" href="class_qwt_text.html#a0f23d507c59b16d81b96ecf1e79131a8">backgroundBrush</a>;</div>
<div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160; </div>
<div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160;    <a class="code" href="class_qwt_text.html#ae35175c671a39f4fae178c162a5a8132">QwtText::PaintAttributes</a> paintAttributes;</div>
<div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160;    <a class="code" href="class_qwt_text.html#a805159bacb9298cfabbaed30f9676af2">QwtText::LayoutAttributes</a> layoutAttributes;</div>
<div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160; </div>
<div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160;    <span class="keyword">const</span> <a class="code" href="class_qwt_text_engine.html">QwtTextEngine</a>* <a class="code" href="class_qwt_text.html#a053d8fdb4de77bd3b6f2eb0ecd3980ca">textEngine</a>;</div>
<div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160;};</div>
<div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160; </div>
<div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160;<span class="keyword">class </span>QwtText::LayoutCache</div>
<div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160;{</div>
<div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160;  <span class="keyword">public</span>:</div>
<div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160;    <span class="keywordtype">void</span> invalidate()</div>
<div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160;    {</div>
<div class="line"><a name="l00191"></a><span class="lineno">  191</span>&#160;        <a class="code" href="class_qwt_text.html#a40ec54788db82cfb2941cff8c4621c15">textSize</a> = QSizeF();</div>
<div class="line"><a name="l00192"></a><span class="lineno">  192</span>&#160;    }</div>
<div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160; </div>
<div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160;    QFont <a class="code" href="class_qwt_text.html#a67039ac189d3a9683801851ac70e87a6">font</a>;</div>
<div class="line"><a name="l00195"></a><span class="lineno">  195</span>&#160;    QSizeF <a class="code" href="class_qwt_text.html#a40ec54788db82cfb2941cff8c4621c15">textSize</a>;</div>
<div class="line"><a name="l00196"></a><span class="lineno">  196</span>&#160;};</div>
<div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160; </div>
<div class="line"><a name="l00201"></a><span class="lineno"><a class="line" href="class_qwt_text.html#a1ba10b4e535424a5ecedda45e0eff0b5">  201</a></span>&#160;<a class="code" href="class_qwt_text.html#a1ba10b4e535424a5ecedda45e0eff0b5">QwtText::QwtText</a>()</div>
<div class="line"><a name="l00202"></a><span class="lineno">  202</span>&#160;{</div>
<div class="line"><a name="l00203"></a><span class="lineno">  203</span>&#160;    m_data = <span class="keyword">new</span> PrivateData;</div>
<div class="line"><a name="l00204"></a><span class="lineno">  204</span>&#160;    m_data-&gt;textEngine = <a class="code" href="class_qwt_text.html#a053d8fdb4de77bd3b6f2eb0ecd3980ca">textEngine</a>( m_data-&gt;text, <a class="code" href="class_qwt_text.html#a63e0d6a59a427a37ed0bfa71b782fd76aa6810f6d3c785c202d2507c601b97787">PlainText</a> );</div>
<div class="line"><a name="l00205"></a><span class="lineno">  205</span>&#160; </div>
<div class="line"><a name="l00206"></a><span class="lineno">  206</span>&#160;    m_layoutCache = <span class="keyword">new</span> LayoutCache;</div>
<div class="line"><a name="l00207"></a><span class="lineno">  207</span>&#160;}</div>
<div class="line"><a name="l00208"></a><span class="lineno">  208</span>&#160; </div>
<div class="line"><a name="l00215"></a><span class="lineno"><a class="line" href="class_qwt_text.html#a6c8d493f6131751831d81554b071b552">  215</a></span>&#160;<a class="code" href="class_qwt_text.html#a1ba10b4e535424a5ecedda45e0eff0b5">QwtText::QwtText</a>( <span class="keyword">const</span> QString&amp; text, <a class="code" href="class_qwt_text.html#a63e0d6a59a427a37ed0bfa71b782fd76">QwtText::TextFormat</a> textFormat )</div>
<div class="line"><a name="l00216"></a><span class="lineno">  216</span>&#160;{</div>
<div class="line"><a name="l00217"></a><span class="lineno">  217</span>&#160;    m_data = <span class="keyword">new</span> PrivateData;</div>
<div class="line"><a name="l00218"></a><span class="lineno">  218</span>&#160;    m_data-&gt;text = <a class="code" href="class_qwt_text.html#ad94fd632f61b1e5d9f68ce65c445982e">text</a>;</div>
<div class="line"><a name="l00219"></a><span class="lineno">  219</span>&#160;    m_data-&gt;textEngine = <a class="code" href="class_qwt_text.html#a053d8fdb4de77bd3b6f2eb0ecd3980ca">textEngine</a>( <a class="code" href="class_qwt_text.html#ad94fd632f61b1e5d9f68ce65c445982e">text</a>, textFormat );</div>
<div class="line"><a name="l00220"></a><span class="lineno">  220</span>&#160; </div>
<div class="line"><a name="l00221"></a><span class="lineno">  221</span>&#160;    m_layoutCache = <span class="keyword">new</span> LayoutCache;</div>
<div class="line"><a name="l00222"></a><span class="lineno">  222</span>&#160;}</div>
<div class="line"><a name="l00223"></a><span class="lineno">  223</span>&#160; </div>
<div class="line"><a name="l00225"></a><span class="lineno"><a class="line" href="class_qwt_text.html#af88b42733c420574fa76b2d58b965313">  225</a></span>&#160;<a class="code" href="class_qwt_text.html#a1ba10b4e535424a5ecedda45e0eff0b5">QwtText::QwtText</a>( <span class="keyword">const</span> <a class="code" href="class_qwt_text.html">QwtText</a>&amp; other )</div>
<div class="line"><a name="l00226"></a><span class="lineno">  226</span>&#160;{</div>
<div class="line"><a name="l00227"></a><span class="lineno">  227</span>&#160;    m_data = <span class="keyword">new</span> PrivateData;</div>
<div class="line"><a name="l00228"></a><span class="lineno">  228</span>&#160;    *m_data = *other.m_data;</div>
<div class="line"><a name="l00229"></a><span class="lineno">  229</span>&#160; </div>
<div class="line"><a name="l00230"></a><span class="lineno">  230</span>&#160;    m_layoutCache = <span class="keyword">new</span> LayoutCache;</div>
<div class="line"><a name="l00231"></a><span class="lineno">  231</span>&#160;    *m_layoutCache = *other.m_layoutCache;</div>
<div class="line"><a name="l00232"></a><span class="lineno">  232</span>&#160;}</div>
<div class="line"><a name="l00233"></a><span class="lineno">  233</span>&#160; </div>
<div class="line"><a name="l00235"></a><span class="lineno"><a class="line" href="class_qwt_text.html#aba243ac11b91979ad3f2ee7d3c700195">  235</a></span>&#160;<a class="code" href="class_qwt_text.html#aba243ac11b91979ad3f2ee7d3c700195">QwtText::~QwtText</a>()</div>
<div class="line"><a name="l00236"></a><span class="lineno">  236</span>&#160;{</div>
<div class="line"><a name="l00237"></a><span class="lineno">  237</span>&#160;    <span class="keyword">delete</span> m_data;</div>
<div class="line"><a name="l00238"></a><span class="lineno">  238</span>&#160;    <span class="keyword">delete</span> m_layoutCache;</div>
<div class="line"><a name="l00239"></a><span class="lineno">  239</span>&#160;}</div>
<div class="line"><a name="l00240"></a><span class="lineno">  240</span>&#160; </div>
<div class="line"><a name="l00242"></a><span class="lineno"><a class="line" href="class_qwt_text.html#ad4a8678071c7e114c47a21f1f78cca37">  242</a></span>&#160;<a class="code" href="class_qwt_text.html">QwtText</a>&amp; <a class="code" href="class_qwt_text.html#ad4a8678071c7e114c47a21f1f78cca37">QwtText::operator=</a>( <span class="keyword">const</span> <a class="code" href="class_qwt_text.html">QwtText</a>&amp; other )</div>
<div class="line"><a name="l00243"></a><span class="lineno">  243</span>&#160;{</div>
<div class="line"><a name="l00244"></a><span class="lineno">  244</span>&#160;    *m_data = *other.m_data;</div>
<div class="line"><a name="l00245"></a><span class="lineno">  245</span>&#160;    *m_layoutCache = *other.m_layoutCache;</div>
<div class="line"><a name="l00246"></a><span class="lineno">  246</span>&#160;    <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div>
<div class="line"><a name="l00247"></a><span class="lineno">  247</span>&#160;}</div>
<div class="line"><a name="l00248"></a><span class="lineno">  248</span>&#160; </div>
<div class="line"><a name="l00250"></a><span class="lineno"><a class="line" href="class_qwt_text.html#a09bb31bf999e2b6a88bc76f0b9626029">  250</a></span>&#160;<span class="keywordtype">bool</span> <a class="code" href="class_qwt_text.html#a09bb31bf999e2b6a88bc76f0b9626029">QwtText::operator==</a>( <span class="keyword">const</span> <a class="code" href="class_qwt_text.html">QwtText</a>&amp; other )<span class="keyword"> const</span></div>
<div class="line"><a name="l00251"></a><span class="lineno">  251</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00252"></a><span class="lineno">  252</span>&#160;    <span class="keywordflow">return</span> m_data-&gt;renderFlags == other.m_data-&gt;renderFlags &amp;&amp;</div>
<div class="line"><a name="l00253"></a><span class="lineno">  253</span>&#160;           m_data-&gt;text == other.m_data-&gt;text &amp;&amp;</div>
<div class="line"><a name="l00254"></a><span class="lineno">  254</span>&#160;           m_data-&gt;font == other.m_data-&gt;font &amp;&amp;</div>
<div class="line"><a name="l00255"></a><span class="lineno">  255</span>&#160;           m_data-&gt;color == other.m_data-&gt;color &amp;&amp;</div>
<div class="line"><a name="l00256"></a><span class="lineno">  256</span>&#160;           m_data-&gt;borderRadius == other.m_data-&gt;borderRadius &amp;&amp;</div>
<div class="line"><a name="l00257"></a><span class="lineno">  257</span>&#160;           m_data-&gt;borderPen == other.m_data-&gt;borderPen &amp;&amp;</div>
<div class="line"><a name="l00258"></a><span class="lineno">  258</span>&#160;           m_data-&gt;backgroundBrush == other.m_data-&gt;backgroundBrush &amp;&amp;</div>
<div class="line"><a name="l00259"></a><span class="lineno">  259</span>&#160;           m_data-&gt;paintAttributes == other.m_data-&gt;paintAttributes &amp;&amp;</div>
<div class="line"><a name="l00260"></a><span class="lineno">  260</span>&#160;           m_data-&gt;textEngine == other.m_data-&gt;textEngine;</div>
<div class="line"><a name="l00261"></a><span class="lineno">  261</span>&#160;}</div>
<div class="line"><a name="l00262"></a><span class="lineno">  262</span>&#160; </div>
<div class="line"><a name="l00264"></a><span class="lineno"><a class="line" href="class_qwt_text.html#ab00c5b829e19d18d96d296840b3de5d8">  264</a></span>&#160;<span class="keywordtype">bool</span> <a class="code" href="class_qwt_text.html#ab00c5b829e19d18d96d296840b3de5d8">QwtText::operator!=</a>( <span class="keyword">const</span> <a class="code" href="class_qwt_text.html">QwtText</a>&amp; other ) <span class="keyword">const</span> <span class="comment">// invalidate</span></div>
<div class="line"><a name="l00265"></a><span class="lineno">  265</span>&#160;{</div>
<div class="line"><a name="l00266"></a><span class="lineno">  266</span>&#160;    <span class="keywordflow">return</span> !( other == *this );</div>
<div class="line"><a name="l00267"></a><span class="lineno">  267</span>&#160;}</div>
<div class="line"><a name="l00268"></a><span class="lineno">  268</span>&#160; </div>
<div class="line"><a name="l00277"></a><span class="lineno"><a class="line" href="class_qwt_text.html#a9ba9caa82fcfbc4bfbf8ce20ccea981e">  277</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_qwt_text.html#a9ba9caa82fcfbc4bfbf8ce20ccea981e">QwtText::setText</a>( <span class="keyword">const</span> QString&amp; text,</div>
<div class="line"><a name="l00278"></a><span class="lineno">  278</span>&#160;    <a class="code" href="class_qwt_text.html#a63e0d6a59a427a37ed0bfa71b782fd76">QwtText::TextFormat</a> textFormat )</div>
<div class="line"><a name="l00279"></a><span class="lineno">  279</span>&#160;{</div>
<div class="line"><a name="l00280"></a><span class="lineno">  280</span>&#160;    m_data-&gt;text = <a class="code" href="class_qwt_text.html#ad94fd632f61b1e5d9f68ce65c445982e">text</a>;</div>
<div class="line"><a name="l00281"></a><span class="lineno">  281</span>&#160;    m_data-&gt;textEngine = <a class="code" href="class_qwt_text.html#a053d8fdb4de77bd3b6f2eb0ecd3980ca">textEngine</a>( <a class="code" href="class_qwt_text.html#ad94fd632f61b1e5d9f68ce65c445982e">text</a>, textFormat );</div>
<div class="line"><a name="l00282"></a><span class="lineno">  282</span>&#160;    m_layoutCache-&gt;invalidate();</div>
<div class="line"><a name="l00283"></a><span class="lineno">  283</span>&#160;}</div>
<div class="line"><a name="l00284"></a><span class="lineno">  284</span>&#160; </div>
<div class="line"><a name="l00289"></a><span class="lineno"><a class="line" href="class_qwt_text.html#ad94fd632f61b1e5d9f68ce65c445982e">  289</a></span>&#160;QString <a class="code" href="class_qwt_text.html#ad94fd632f61b1e5d9f68ce65c445982e">QwtText::text</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00290"></a><span class="lineno">  290</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00291"></a><span class="lineno">  291</span>&#160;    <span class="keywordflow">return</span> m_data-&gt;text;</div>
<div class="line"><a name="l00292"></a><span class="lineno">  292</span>&#160;}</div>
<div class="line"><a name="l00293"></a><span class="lineno">  293</span>&#160; </div>
<div class="line"><a name="l00304"></a><span class="lineno"><a class="line" href="class_qwt_text.html#afcbaa37913afaa0e92a649923cfe500b">  304</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_qwt_text.html#afcbaa37913afaa0e92a649923cfe500b">QwtText::setRenderFlags</a>( <span class="keywordtype">int</span> renderFlags )</div>
<div class="line"><a name="l00305"></a><span class="lineno">  305</span>&#160;{</div>
<div class="line"><a name="l00306"></a><span class="lineno">  306</span>&#160;    <span class="keywordflow">if</span> ( <a class="code" href="class_qwt_text.html#a4284800d239934818c1951381ff52d05">renderFlags</a> != m_data-&gt;renderFlags )</div>
<div class="line"><a name="l00307"></a><span class="lineno">  307</span>&#160;    {</div>
<div class="line"><a name="l00308"></a><span class="lineno">  308</span>&#160;        m_data-&gt;renderFlags = <a class="code" href="class_qwt_text.html#a4284800d239934818c1951381ff52d05">renderFlags</a>;</div>
<div class="line"><a name="l00309"></a><span class="lineno">  309</span>&#160;        m_layoutCache-&gt;invalidate();</div>
<div class="line"><a name="l00310"></a><span class="lineno">  310</span>&#160;    }</div>
<div class="line"><a name="l00311"></a><span class="lineno">  311</span>&#160;}</div>
<div class="line"><a name="l00312"></a><span class="lineno">  312</span>&#160; </div>
<div class="line"><a name="l00317"></a><span class="lineno"><a class="line" href="class_qwt_text.html#a4284800d239934818c1951381ff52d05">  317</a></span>&#160;<span class="keywordtype">int</span> <a class="code" href="class_qwt_text.html#a4284800d239934818c1951381ff52d05">QwtText::renderFlags</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00318"></a><span class="lineno">  318</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00319"></a><span class="lineno">  319</span>&#160;    <span class="keywordflow">return</span> m_data-&gt;renderFlags;</div>
<div class="line"><a name="l00320"></a><span class="lineno">  320</span>&#160;}</div>
<div class="line"><a name="l00321"></a><span class="lineno">  321</span>&#160; </div>
<div class="line"><a name="l00329"></a><span class="lineno"><a class="line" href="class_qwt_text.html#ad071f3c4fae4512a1cc71554d95eb69a">  329</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_qwt_text.html#ad071f3c4fae4512a1cc71554d95eb69a">QwtText::setFont</a>( <span class="keyword">const</span> QFont&amp; font )</div>
<div class="line"><a name="l00330"></a><span class="lineno">  330</span>&#160;{</div>
<div class="line"><a name="l00331"></a><span class="lineno">  331</span>&#160;    m_data-&gt;font = <a class="code" href="class_qwt_text.html#a67039ac189d3a9683801851ac70e87a6">font</a>;</div>
<div class="line"><a name="l00332"></a><span class="lineno">  332</span>&#160;    <a class="code" href="class_qwt_text.html#aac80e3f05137173059b196206ceea9e8">setPaintAttribute</a>( <a class="code" href="class_qwt_text.html#a9739e47ea489e690f121e4b1d27ae24eac12e48f17fd02a6bc1840c61c4862a65">PaintUsingTextFont</a> );</div>
<div class="line"><a name="l00333"></a><span class="lineno">  333</span>&#160;}</div>
<div class="line"><a name="l00334"></a><span class="lineno">  334</span>&#160; </div>
<div class="line"><a name="l00336"></a><span class="lineno"><a class="line" href="class_qwt_text.html#a67039ac189d3a9683801851ac70e87a6">  336</a></span>&#160;QFont <a class="code" href="class_qwt_text.html#a67039ac189d3a9683801851ac70e87a6">QwtText::font</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00337"></a><span class="lineno">  337</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00338"></a><span class="lineno">  338</span>&#160;    <span class="keywordflow">return</span> m_data-&gt;font;</div>
<div class="line"><a name="l00339"></a><span class="lineno">  339</span>&#160;}</div>
<div class="line"><a name="l00340"></a><span class="lineno">  340</span>&#160; </div>
<div class="line"><a name="l00350"></a><span class="lineno"><a class="line" href="class_qwt_text.html#affd35b4cd92e45659b895c5614e3eedd">  350</a></span>&#160;QFont <a class="code" href="class_qwt_text.html#affd35b4cd92e45659b895c5614e3eedd">QwtText::usedFont</a>( <span class="keyword">const</span> QFont&amp; defaultFont )<span class="keyword"> const</span></div>
<div class="line"><a name="l00351"></a><span class="lineno">  351</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00352"></a><span class="lineno">  352</span>&#160;    <span class="keywordflow">if</span> ( m_data-&gt;paintAttributes &amp; <a class="code" href="class_qwt_text.html#a9739e47ea489e690f121e4b1d27ae24eac12e48f17fd02a6bc1840c61c4862a65">PaintUsingTextFont</a> )</div>
<div class="line"><a name="l00353"></a><span class="lineno">  353</span>&#160;        <span class="keywordflow">return</span> m_data-&gt;font;</div>
<div class="line"><a name="l00354"></a><span class="lineno">  354</span>&#160; </div>
<div class="line"><a name="l00355"></a><span class="lineno">  355</span>&#160;    <span class="keywordflow">return</span> defaultFont;</div>
<div class="line"><a name="l00356"></a><span class="lineno">  356</span>&#160;}</div>
<div class="line"><a name="l00357"></a><span class="lineno">  357</span>&#160; </div>
<div class="line"><a name="l00365"></a><span class="lineno"><a class="line" href="class_qwt_text.html#ac7de5839a5c3b1ee367cfbd5691aa105">  365</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_qwt_text.html#ac7de5839a5c3b1ee367cfbd5691aa105">QwtText::setColor</a>( <span class="keyword">const</span> QColor&amp; color )</div>
<div class="line"><a name="l00366"></a><span class="lineno">  366</span>&#160;{</div>
<div class="line"><a name="l00367"></a><span class="lineno">  367</span>&#160;    m_data-&gt;color = <a class="code" href="class_qwt_text.html#a731bc1eca7825f55f3026f840c0fa42f">color</a>;</div>
<div class="line"><a name="l00368"></a><span class="lineno">  368</span>&#160;    <a class="code" href="class_qwt_text.html#aac80e3f05137173059b196206ceea9e8">setPaintAttribute</a>( <a class="code" href="class_qwt_text.html#a9739e47ea489e690f121e4b1d27ae24ea1aa48cee0a54089820e77600cf93dc4b">PaintUsingTextColor</a> );</div>
<div class="line"><a name="l00369"></a><span class="lineno">  369</span>&#160;}</div>
<div class="line"><a name="l00370"></a><span class="lineno">  370</span>&#160; </div>
<div class="line"><a name="l00372"></a><span class="lineno"><a class="line" href="class_qwt_text.html#a731bc1eca7825f55f3026f840c0fa42f">  372</a></span>&#160;QColor <a class="code" href="class_qwt_text.html#a731bc1eca7825f55f3026f840c0fa42f">QwtText::color</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00373"></a><span class="lineno">  373</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00374"></a><span class="lineno">  374</span>&#160;    <span class="keywordflow">return</span> m_data-&gt;color;</div>
<div class="line"><a name="l00375"></a><span class="lineno">  375</span>&#160;}</div>
<div class="line"><a name="l00376"></a><span class="lineno">  376</span>&#160; </div>
<div class="line"><a name="l00386"></a><span class="lineno"><a class="line" href="class_qwt_text.html#a19bc6e3baa215dccab7993cd211ed975">  386</a></span>&#160;QColor <a class="code" href="class_qwt_text.html#a19bc6e3baa215dccab7993cd211ed975">QwtText::usedColor</a>( <span class="keyword">const</span> QColor&amp; defaultColor )<span class="keyword"> const</span></div>
<div class="line"><a name="l00387"></a><span class="lineno">  387</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00388"></a><span class="lineno">  388</span>&#160;    <span class="keywordflow">if</span> ( m_data-&gt;paintAttributes &amp; <a class="code" href="class_qwt_text.html#a9739e47ea489e690f121e4b1d27ae24ea1aa48cee0a54089820e77600cf93dc4b">PaintUsingTextColor</a> )</div>
<div class="line"><a name="l00389"></a><span class="lineno">  389</span>&#160;        <span class="keywordflow">return</span> m_data-&gt;color;</div>
<div class="line"><a name="l00390"></a><span class="lineno">  390</span>&#160; </div>
<div class="line"><a name="l00391"></a><span class="lineno">  391</span>&#160;    <span class="keywordflow">return</span> defaultColor;</div>
<div class="line"><a name="l00392"></a><span class="lineno">  392</span>&#160;}</div>
<div class="line"><a name="l00393"></a><span class="lineno">  393</span>&#160; </div>
<div class="line"><a name="l00400"></a><span class="lineno"><a class="line" href="class_qwt_text.html#a7c62dfe82aa94f113cd4f8702bd2242c">  400</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_qwt_text.html#a7c62dfe82aa94f113cd4f8702bd2242c">QwtText::setBorderRadius</a>( <span class="keywordtype">double</span> radius )</div>
<div class="line"><a name="l00401"></a><span class="lineno">  401</span>&#160;{</div>
<div class="line"><a name="l00402"></a><span class="lineno">  402</span>&#160;    m_data-&gt;borderRadius = qwtMaxF( 0.0, radius );</div>
<div class="line"><a name="l00403"></a><span class="lineno">  403</span>&#160;}</div>
<div class="line"><a name="l00404"></a><span class="lineno">  404</span>&#160; </div>
<div class="line"><a name="l00409"></a><span class="lineno"><a class="line" href="class_qwt_text.html#a5d75098c287af25e35111c73f166d3ce">  409</a></span>&#160;<span class="keywordtype">double</span> <a class="code" href="class_qwt_text.html#a5d75098c287af25e35111c73f166d3ce">QwtText::borderRadius</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00410"></a><span class="lineno">  410</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00411"></a><span class="lineno">  411</span>&#160;    <span class="keywordflow">return</span> m_data-&gt;borderRadius;</div>
<div class="line"><a name="l00412"></a><span class="lineno">  412</span>&#160;}</div>
<div class="line"><a name="l00413"></a><span class="lineno">  413</span>&#160; </div>
<div class="line"><a name="l00420"></a><span class="lineno"><a class="line" href="class_qwt_text.html#aca4dd700b7a182114a8c0eb864c4ec2f">  420</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_qwt_text.html#aca4dd700b7a182114a8c0eb864c4ec2f">QwtText::setBorderPen</a>( <span class="keyword">const</span> QPen&amp; pen )</div>
<div class="line"><a name="l00421"></a><span class="lineno">  421</span>&#160;{</div>
<div class="line"><a name="l00422"></a><span class="lineno">  422</span>&#160;    m_data-&gt;borderPen = pen;</div>
<div class="line"><a name="l00423"></a><span class="lineno">  423</span>&#160;    <a class="code" href="class_qwt_text.html#aac80e3f05137173059b196206ceea9e8">setPaintAttribute</a>( <a class="code" href="class_qwt_text.html#a9739e47ea489e690f121e4b1d27ae24ea77dd66b2a65e9998d9803672791e1456">PaintBackground</a> );</div>
<div class="line"><a name="l00424"></a><span class="lineno">  424</span>&#160;}</div>
<div class="line"><a name="l00425"></a><span class="lineno">  425</span>&#160; </div>
<div class="line"><a name="l00430"></a><span class="lineno"><a class="line" href="class_qwt_text.html#afa094ef46da5cc2856538297a249e65f">  430</a></span>&#160;QPen <a class="code" href="class_qwt_text.html#afa094ef46da5cc2856538297a249e65f">QwtText::borderPen</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00431"></a><span class="lineno">  431</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00432"></a><span class="lineno">  432</span>&#160;    <span class="keywordflow">return</span> m_data-&gt;borderPen;</div>
<div class="line"><a name="l00433"></a><span class="lineno">  433</span>&#160;}</div>
<div class="line"><a name="l00434"></a><span class="lineno">  434</span>&#160; </div>
<div class="line"><a name="l00441"></a><span class="lineno"><a class="line" href="class_qwt_text.html#af016a747b234aede9f0cbbeb06ed2802">  441</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_qwt_text.html#af016a747b234aede9f0cbbeb06ed2802">QwtText::setBackgroundBrush</a>( <span class="keyword">const</span> QBrush&amp; brush )</div>
<div class="line"><a name="l00442"></a><span class="lineno">  442</span>&#160;{</div>
<div class="line"><a name="l00443"></a><span class="lineno">  443</span>&#160;    m_data-&gt;backgroundBrush = brush;</div>
<div class="line"><a name="l00444"></a><span class="lineno">  444</span>&#160;    <a class="code" href="class_qwt_text.html#aac80e3f05137173059b196206ceea9e8">setPaintAttribute</a>( <a class="code" href="class_qwt_text.html#a9739e47ea489e690f121e4b1d27ae24ea77dd66b2a65e9998d9803672791e1456">PaintBackground</a> );</div>
<div class="line"><a name="l00445"></a><span class="lineno">  445</span>&#160;}</div>
<div class="line"><a name="l00446"></a><span class="lineno">  446</span>&#160; </div>
<div class="line"><a name="l00451"></a><span class="lineno"><a class="line" href="class_qwt_text.html#a0f23d507c59b16d81b96ecf1e79131a8">  451</a></span>&#160;QBrush <a class="code" href="class_qwt_text.html#a0f23d507c59b16d81b96ecf1e79131a8">QwtText::backgroundBrush</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00452"></a><span class="lineno">  452</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00453"></a><span class="lineno">  453</span>&#160;    <span class="keywordflow">return</span> m_data-&gt;backgroundBrush;</div>
<div class="line"><a name="l00454"></a><span class="lineno">  454</span>&#160;}</div>
<div class="line"><a name="l00455"></a><span class="lineno">  455</span>&#160; </div>
<div class="line"><a name="l00466"></a><span class="lineno"><a class="line" href="class_qwt_text.html#aac80e3f05137173059b196206ceea9e8">  466</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_qwt_text.html#aac80e3f05137173059b196206ceea9e8">QwtText::setPaintAttribute</a>( <a class="code" href="class_qwt_text.html#a9739e47ea489e690f121e4b1d27ae24e">PaintAttribute</a> attribute, <span class="keywordtype">bool</span> on )</div>
<div class="line"><a name="l00467"></a><span class="lineno">  467</span>&#160;{</div>
<div class="line"><a name="l00468"></a><span class="lineno">  468</span>&#160;    <span class="keywordflow">if</span> ( on )</div>
<div class="line"><a name="l00469"></a><span class="lineno">  469</span>&#160;        m_data-&gt;paintAttributes |= attribute;</div>
<div class="line"><a name="l00470"></a><span class="lineno">  470</span>&#160;    <span class="keywordflow">else</span></div>
<div class="line"><a name="l00471"></a><span class="lineno">  471</span>&#160;        m_data-&gt;paintAttributes &amp;= ~attribute;</div>
<div class="line"><a name="l00472"></a><span class="lineno">  472</span>&#160;}</div>
<div class="line"><a name="l00473"></a><span class="lineno">  473</span>&#160; </div>
<div class="line"><a name="l00482"></a><span class="lineno"><a class="line" href="class_qwt_text.html#a390f10d5fccfb7070fe0c1ace8fdd0ce">  482</a></span>&#160;<span class="keywordtype">bool</span> <a class="code" href="class_qwt_text.html#a390f10d5fccfb7070fe0c1ace8fdd0ce">QwtText::testPaintAttribute</a>( <a class="code" href="class_qwt_text.html#a9739e47ea489e690f121e4b1d27ae24e">PaintAttribute</a> attribute )<span class="keyword"> const</span></div>
<div class="line"><a name="l00483"></a><span class="lineno">  483</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00484"></a><span class="lineno">  484</span>&#160;    <span class="keywordflow">return</span> m_data-&gt;paintAttributes &amp; attribute;</div>
<div class="line"><a name="l00485"></a><span class="lineno">  485</span>&#160;}</div>
<div class="line"><a name="l00486"></a><span class="lineno">  486</span>&#160; </div>
<div class="line"><a name="l00494"></a><span class="lineno"><a class="line" href="class_qwt_text.html#a2b621d3104ead2185d2d939b1f5b9d68">  494</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_qwt_text.html#a2b621d3104ead2185d2d939b1f5b9d68">QwtText::setLayoutAttribute</a>( <a class="code" href="class_qwt_text.html#a0953aabc098f410dba89bbada47f2e5a">LayoutAttribute</a> attribute, <span class="keywordtype">bool</span> on )</div>
<div class="line"><a name="l00495"></a><span class="lineno">  495</span>&#160;{</div>
<div class="line"><a name="l00496"></a><span class="lineno">  496</span>&#160;    <span class="keywordflow">if</span> ( on )</div>
<div class="line"><a name="l00497"></a><span class="lineno">  497</span>&#160;        m_data-&gt;layoutAttributes |= attribute;</div>
<div class="line"><a name="l00498"></a><span class="lineno">  498</span>&#160;    <span class="keywordflow">else</span></div>
<div class="line"><a name="l00499"></a><span class="lineno">  499</span>&#160;        m_data-&gt;layoutAttributes &amp;= ~attribute;</div>
<div class="line"><a name="l00500"></a><span class="lineno">  500</span>&#160;}</div>
<div class="line"><a name="l00501"></a><span class="lineno">  501</span>&#160; </div>
<div class="line"><a name="l00510"></a><span class="lineno"><a class="line" href="class_qwt_text.html#ad6b2a300b29b5f0ee90289e962c68f39">  510</a></span>&#160;<span class="keywordtype">bool</span> <a class="code" href="class_qwt_text.html#ad6b2a300b29b5f0ee90289e962c68f39">QwtText::testLayoutAttribute</a>( <a class="code" href="class_qwt_text.html#a0953aabc098f410dba89bbada47f2e5a">LayoutAttribute</a> attribute )<span class="keyword"> const</span></div>
<div class="line"><a name="l00511"></a><span class="lineno">  511</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00512"></a><span class="lineno">  512</span>&#160;    <span class="keywordflow">return</span> m_data-&gt;layoutAttributes | attribute;</div>
<div class="line"><a name="l00513"></a><span class="lineno">  513</span>&#160;}</div>
<div class="line"><a name="l00514"></a><span class="lineno">  514</span>&#160; </div>
<div class="line"><a name="l00522"></a><span class="lineno"><a class="line" href="class_qwt_text.html#afc82666c1dd9ede2445c981a2a835171">  522</a></span>&#160;<span class="keywordtype">double</span> <a class="code" href="class_qwt_text.html#afc82666c1dd9ede2445c981a2a835171">QwtText::heightForWidth</a>( <span class="keywordtype">double</span> width )<span class="keyword"> const</span></div>
<div class="line"><a name="l00523"></a><span class="lineno">  523</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00524"></a><span class="lineno">  524</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="class_qwt_text.html#afc82666c1dd9ede2445c981a2a835171">heightForWidth</a>( width, QFont() );</div>
<div class="line"><a name="l00525"></a><span class="lineno">  525</span>&#160;}</div>
<div class="line"><a name="l00526"></a><span class="lineno">  526</span>&#160; </div>
<div class="line"><a name="l00535"></a><span class="lineno"><a class="line" href="class_qwt_text.html#ae862b6b04f4e147f4878409916abf6d4">  535</a></span>&#160;<span class="keywordtype">double</span> <a class="code" href="class_qwt_text.html#afc82666c1dd9ede2445c981a2a835171">QwtText::heightForWidth</a>( <span class="keywordtype">double</span> width, <span class="keyword">const</span> QFont&amp; defaultFont )<span class="keyword"> const</span></div>
<div class="line"><a name="l00536"></a><span class="lineno">  536</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00537"></a><span class="lineno">  537</span>&#160;    <span class="comment">// We want to calculate in screen metrics. So</span></div>
<div class="line"><a name="l00538"></a><span class="lineno">  538</span>&#160;    <span class="comment">// we need a font that uses screen metrics</span></div>
<div class="line"><a name="l00539"></a><span class="lineno">  539</span>&#160; </div>
<div class="line"><a name="l00540"></a><span class="lineno">  540</span>&#160;    <span class="keyword">const</span> QFont <a class="code" href="class_qwt_text.html#a67039ac189d3a9683801851ac70e87a6">font</a> = <a class="code" href="class_qwt_painter.html#ae9c82d949cd328f48e4932dad686161b">QwtPainter::scaledFont</a>( <a class="code" href="class_qwt_text.html#affd35b4cd92e45659b895c5614e3eedd">usedFont</a>( defaultFont ) );</div>
<div class="line"><a name="l00541"></a><span class="lineno">  541</span>&#160; </div>
<div class="line"><a name="l00542"></a><span class="lineno">  542</span>&#160;    <span class="keywordtype">double</span> h = 0;</div>
<div class="line"><a name="l00543"></a><span class="lineno">  543</span>&#160; </div>
<div class="line"><a name="l00544"></a><span class="lineno">  544</span>&#160;    <span class="keywordflow">if</span> ( m_data-&gt;layoutAttributes &amp; <a class="code" href="class_qwt_text.html#a0953aabc098f410dba89bbada47f2e5aa35990c4c74747580e9357d490ebce42f">MinimumLayout</a> )</div>
<div class="line"><a name="l00545"></a><span class="lineno">  545</span>&#160;    {</div>
<div class="line"><a name="l00546"></a><span class="lineno">  546</span>&#160;        <span class="keywordtype">double</span> left, right, top, bottom;</div>
<div class="line"><a name="l00547"></a><span class="lineno">  547</span>&#160;        m_data-&gt;textEngine-&gt;textMargins( <a class="code" href="class_qwt_text.html#a67039ac189d3a9683801851ac70e87a6">font</a>, m_data-&gt;text,</div>
<div class="line"><a name="l00548"></a><span class="lineno">  548</span>&#160;            left, right, top, bottom );</div>
<div class="line"><a name="l00549"></a><span class="lineno">  549</span>&#160; </div>
<div class="line"><a name="l00550"></a><span class="lineno">  550</span>&#160;        h = m_data-&gt;textEngine-&gt;heightForWidth(</div>
<div class="line"><a name="l00551"></a><span class="lineno">  551</span>&#160;            <a class="code" href="class_qwt_text.html#a67039ac189d3a9683801851ac70e87a6">font</a>, m_data-&gt;renderFlags, m_data-&gt;text,</div>
<div class="line"><a name="l00552"></a><span class="lineno">  552</span>&#160;            width + left + right );</div>
<div class="line"><a name="l00553"></a><span class="lineno">  553</span>&#160; </div>
<div class="line"><a name="l00554"></a><span class="lineno">  554</span>&#160;        h -= top + bottom;</div>
<div class="line"><a name="l00555"></a><span class="lineno">  555</span>&#160;    }</div>
<div class="line"><a name="l00556"></a><span class="lineno">  556</span>&#160;    <span class="keywordflow">else</span></div>
<div class="line"><a name="l00557"></a><span class="lineno">  557</span>&#160;    {</div>
<div class="line"><a name="l00558"></a><span class="lineno">  558</span>&#160;        h = m_data-&gt;textEngine-&gt;heightForWidth(</div>
<div class="line"><a name="l00559"></a><span class="lineno">  559</span>&#160;            <a class="code" href="class_qwt_text.html#a67039ac189d3a9683801851ac70e87a6">font</a>, m_data-&gt;renderFlags, m_data-&gt;text, width );</div>
<div class="line"><a name="l00560"></a><span class="lineno">  560</span>&#160;    }</div>
<div class="line"><a name="l00561"></a><span class="lineno">  561</span>&#160; </div>
<div class="line"><a name="l00562"></a><span class="lineno">  562</span>&#160;    <span class="keywordflow">return</span> h;</div>
<div class="line"><a name="l00563"></a><span class="lineno">  563</span>&#160;}</div>
<div class="line"><a name="l00564"></a><span class="lineno">  564</span>&#160; </div>
<div class="line"><a name="l00570"></a><span class="lineno"><a class="line" href="class_qwt_text.html#a40ec54788db82cfb2941cff8c4621c15">  570</a></span>&#160;QSizeF <a class="code" href="class_qwt_text.html#a40ec54788db82cfb2941cff8c4621c15">QwtText::textSize</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00571"></a><span class="lineno">  571</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00572"></a><span class="lineno">  572</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="class_qwt_text.html#a40ec54788db82cfb2941cff8c4621c15">textSize</a>( QFont() );</div>
<div class="line"><a name="l00573"></a><span class="lineno">  573</span>&#160;}</div>
<div class="line"><a name="l00574"></a><span class="lineno">  574</span>&#160; </div>
<div class="line"><a name="l00581"></a><span class="lineno"><a class="line" href="class_qwt_text.html#ac697758296644829ddf72095d37b6433">  581</a></span>&#160;QSizeF <a class="code" href="class_qwt_text.html#a40ec54788db82cfb2941cff8c4621c15">QwtText::textSize</a>( <span class="keyword">const</span> QFont&amp; defaultFont )<span class="keyword"> const</span></div>
<div class="line"><a name="l00582"></a><span class="lineno">  582</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00583"></a><span class="lineno">  583</span>&#160;    <span class="comment">// We want to calculate in screen metrics. So</span></div>
<div class="line"><a name="l00584"></a><span class="lineno">  584</span>&#160;    <span class="comment">// we need a font that uses screen metrics</span></div>
<div class="line"><a name="l00585"></a><span class="lineno">  585</span>&#160; </div>
<div class="line"><a name="l00586"></a><span class="lineno">  586</span>&#160;    <span class="keyword">const</span> QFont <a class="code" href="class_qwt_text.html#a67039ac189d3a9683801851ac70e87a6">font</a> = <a class="code" href="class_qwt_painter.html#ae9c82d949cd328f48e4932dad686161b">QwtPainter::scaledFont</a>( <a class="code" href="class_qwt_text.html#affd35b4cd92e45659b895c5614e3eedd">usedFont</a>( defaultFont ) );</div>
<div class="line"><a name="l00587"></a><span class="lineno">  587</span>&#160; </div>
<div class="line"><a name="l00588"></a><span class="lineno">  588</span>&#160;    <span class="keywordflow">if</span> ( !m_layoutCache-&gt;textSize.isValid()</div>
<div class="line"><a name="l00589"></a><span class="lineno">  589</span>&#160;        || m_layoutCache-&gt;font != <a class="code" href="class_qwt_text.html#a67039ac189d3a9683801851ac70e87a6">font</a> )</div>
<div class="line"><a name="l00590"></a><span class="lineno">  590</span>&#160;    {</div>
<div class="line"><a name="l00591"></a><span class="lineno">  591</span>&#160;        m_layoutCache-&gt;textSize = m_data-&gt;textEngine-&gt;textSize(</div>
<div class="line"><a name="l00592"></a><span class="lineno">  592</span>&#160;            <a class="code" href="class_qwt_text.html#a67039ac189d3a9683801851ac70e87a6">font</a>, m_data-&gt;renderFlags, m_data-&gt;text );</div>
<div class="line"><a name="l00593"></a><span class="lineno">  593</span>&#160;        m_layoutCache-&gt;font = <a class="code" href="class_qwt_text.html#a67039ac189d3a9683801851ac70e87a6">font</a>;</div>
<div class="line"><a name="l00594"></a><span class="lineno">  594</span>&#160;    }</div>
<div class="line"><a name="l00595"></a><span class="lineno">  595</span>&#160; </div>
<div class="line"><a name="l00596"></a><span class="lineno">  596</span>&#160;    QSizeF sz = m_layoutCache-&gt;textSize;</div>
<div class="line"><a name="l00597"></a><span class="lineno">  597</span>&#160; </div>
<div class="line"><a name="l00598"></a><span class="lineno">  598</span>&#160;    <span class="keywordflow">if</span> ( m_data-&gt;layoutAttributes &amp; <a class="code" href="class_qwt_text.html#a0953aabc098f410dba89bbada47f2e5aa35990c4c74747580e9357d490ebce42f">MinimumLayout</a> )</div>
<div class="line"><a name="l00599"></a><span class="lineno">  599</span>&#160;    {</div>
<div class="line"><a name="l00600"></a><span class="lineno">  600</span>&#160;        <span class="keywordtype">double</span> left, right, top, bottom;</div>
<div class="line"><a name="l00601"></a><span class="lineno">  601</span>&#160;        m_data-&gt;textEngine-&gt;textMargins( <a class="code" href="class_qwt_text.html#a67039ac189d3a9683801851ac70e87a6">font</a>, m_data-&gt;text,</div>
<div class="line"><a name="l00602"></a><span class="lineno">  602</span>&#160;            left, right, top, bottom );</div>
<div class="line"><a name="l00603"></a><span class="lineno">  603</span>&#160;        sz -= QSizeF( left + right, top + bottom );</div>
<div class="line"><a name="l00604"></a><span class="lineno">  604</span>&#160;    }</div>
<div class="line"><a name="l00605"></a><span class="lineno">  605</span>&#160; </div>
<div class="line"><a name="l00606"></a><span class="lineno">  606</span>&#160;    <span class="keywordflow">return</span> sz;</div>
<div class="line"><a name="l00607"></a><span class="lineno">  607</span>&#160;}</div>
<div class="line"><a name="l00608"></a><span class="lineno">  608</span>&#160; </div>
<div class="line"><a name="l00615"></a><span class="lineno"><a class="line" href="class_qwt_text.html#ad81ee227016361a0362081bc67c301da">  615</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_qwt_text.html#ad81ee227016361a0362081bc67c301da">QwtText::draw</a>( QPainter* painter, <span class="keyword">const</span> QRectF&amp; rect )<span class="keyword"> const</span></div>
<div class="line"><a name="l00616"></a><span class="lineno">  616</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00617"></a><span class="lineno">  617</span>&#160;    <span class="keywordflow">if</span> ( m_data-&gt;paintAttributes &amp; <a class="code" href="class_qwt_text.html#a9739e47ea489e690f121e4b1d27ae24ea77dd66b2a65e9998d9803672791e1456">PaintBackground</a> )</div>
<div class="line"><a name="l00618"></a><span class="lineno">  618</span>&#160;    {</div>
<div class="line"><a name="l00619"></a><span class="lineno">  619</span>&#160;        <span class="keywordflow">if</span> ( m_data-&gt;borderPen != Qt::NoPen ||</div>
<div class="line"><a name="l00620"></a><span class="lineno">  620</span>&#160;            m_data-&gt;backgroundBrush != Qt::NoBrush )</div>
<div class="line"><a name="l00621"></a><span class="lineno">  621</span>&#160;        {</div>
<div class="line"><a name="l00622"></a><span class="lineno">  622</span>&#160;            painter-&gt;save();</div>
<div class="line"><a name="l00623"></a><span class="lineno">  623</span>&#160; </div>
<div class="line"><a name="l00624"></a><span class="lineno">  624</span>&#160;            painter-&gt;setPen( m_data-&gt;borderPen );</div>
<div class="line"><a name="l00625"></a><span class="lineno">  625</span>&#160;            painter-&gt;setBrush( m_data-&gt;backgroundBrush );</div>
<div class="line"><a name="l00626"></a><span class="lineno">  626</span>&#160; </div>
<div class="line"><a name="l00627"></a><span class="lineno">  627</span>&#160;            <span class="keywordflow">if</span> ( m_data-&gt;borderRadius == 0 )</div>
<div class="line"><a name="l00628"></a><span class="lineno">  628</span>&#160;            {</div>
<div class="line"><a name="l00629"></a><span class="lineno">  629</span>&#160;                <a class="code" href="class_qwt_painter.html#ab77bb84f93f6b422b0b9c106a3991fdc">QwtPainter::drawRect</a>( painter, rect );</div>
<div class="line"><a name="l00630"></a><span class="lineno">  630</span>&#160;            }</div>
<div class="line"><a name="l00631"></a><span class="lineno">  631</span>&#160;            <span class="keywordflow">else</span></div>
<div class="line"><a name="l00632"></a><span class="lineno">  632</span>&#160;            {</div>
<div class="line"><a name="l00633"></a><span class="lineno">  633</span>&#160;                painter-&gt;setRenderHint( QPainter::Antialiasing, <span class="keyword">true</span> );</div>
<div class="line"><a name="l00634"></a><span class="lineno">  634</span>&#160;                painter-&gt;drawRoundedRect( rect,</div>
<div class="line"><a name="l00635"></a><span class="lineno">  635</span>&#160;                    m_data-&gt;borderRadius, m_data-&gt;borderRadius );</div>
<div class="line"><a name="l00636"></a><span class="lineno">  636</span>&#160;            }</div>
<div class="line"><a name="l00637"></a><span class="lineno">  637</span>&#160; </div>
<div class="line"><a name="l00638"></a><span class="lineno">  638</span>&#160;            painter-&gt;restore();</div>
<div class="line"><a name="l00639"></a><span class="lineno">  639</span>&#160;        }</div>
<div class="line"><a name="l00640"></a><span class="lineno">  640</span>&#160;    }</div>
<div class="line"><a name="l00641"></a><span class="lineno">  641</span>&#160; </div>
<div class="line"><a name="l00642"></a><span class="lineno">  642</span>&#160;    painter-&gt;save();</div>
<div class="line"><a name="l00643"></a><span class="lineno">  643</span>&#160; </div>
<div class="line"><a name="l00644"></a><span class="lineno">  644</span>&#160;    <span class="keywordflow">if</span> ( m_data-&gt;paintAttributes &amp; <a class="code" href="class_qwt_text.html#a9739e47ea489e690f121e4b1d27ae24eac12e48f17fd02a6bc1840c61c4862a65">PaintUsingTextFont</a> )</div>
<div class="line"><a name="l00645"></a><span class="lineno">  645</span>&#160;    {</div>
<div class="line"><a name="l00646"></a><span class="lineno">  646</span>&#160;        painter-&gt;setFont( m_data-&gt;font );</div>
<div class="line"><a name="l00647"></a><span class="lineno">  647</span>&#160;    }</div>
<div class="line"><a name="l00648"></a><span class="lineno">  648</span>&#160; </div>
<div class="line"><a name="l00649"></a><span class="lineno">  649</span>&#160;    <span class="keywordflow">if</span> ( m_data-&gt;paintAttributes &amp; <a class="code" href="class_qwt_text.html#a9739e47ea489e690f121e4b1d27ae24ea1aa48cee0a54089820e77600cf93dc4b">PaintUsingTextColor</a> )</div>
<div class="line"><a name="l00650"></a><span class="lineno">  650</span>&#160;    {</div>
<div class="line"><a name="l00651"></a><span class="lineno">  651</span>&#160;        <span class="keywordflow">if</span> ( m_data-&gt;color.isValid() )</div>
<div class="line"><a name="l00652"></a><span class="lineno">  652</span>&#160;            painter-&gt;setPen( m_data-&gt;color );</div>
<div class="line"><a name="l00653"></a><span class="lineno">  653</span>&#160;    }</div>
<div class="line"><a name="l00654"></a><span class="lineno">  654</span>&#160; </div>
<div class="line"><a name="l00655"></a><span class="lineno">  655</span>&#160;    QRectF expandedRect = rect;</div>
<div class="line"><a name="l00656"></a><span class="lineno">  656</span>&#160;    <span class="keywordflow">if</span> ( m_data-&gt;layoutAttributes &amp; <a class="code" href="class_qwt_text.html#a0953aabc098f410dba89bbada47f2e5aa35990c4c74747580e9357d490ebce42f">MinimumLayout</a> )</div>
<div class="line"><a name="l00657"></a><span class="lineno">  657</span>&#160;    {</div>
<div class="line"><a name="l00658"></a><span class="lineno">  658</span>&#160;        <span class="comment">// We want to calculate in screen metrics. So</span></div>
<div class="line"><a name="l00659"></a><span class="lineno">  659</span>&#160;        <span class="comment">// we need a font that uses screen metrics</span></div>
<div class="line"><a name="l00660"></a><span class="lineno">  660</span>&#160; </div>
<div class="line"><a name="l00661"></a><span class="lineno">  661</span>&#160;        <span class="keyword">const</span> QFont <a class="code" href="class_qwt_text.html#a67039ac189d3a9683801851ac70e87a6">font</a> = <a class="code" href="class_qwt_painter.html#ae9c82d949cd328f48e4932dad686161b">QwtPainter::scaledFont</a>( painter-&gt;font() );</div>
<div class="line"><a name="l00662"></a><span class="lineno">  662</span>&#160; </div>
<div class="line"><a name="l00663"></a><span class="lineno">  663</span>&#160;        <span class="keywordtype">double</span> left, right, top, bottom;</div>
<div class="line"><a name="l00664"></a><span class="lineno">  664</span>&#160;        m_data-&gt;textEngine-&gt;textMargins(</div>
<div class="line"><a name="l00665"></a><span class="lineno">  665</span>&#160;            <a class="code" href="class_qwt_text.html#a67039ac189d3a9683801851ac70e87a6">font</a>, m_data-&gt;text, left, right, top, bottom );</div>
<div class="line"><a name="l00666"></a><span class="lineno">  666</span>&#160; </div>
<div class="line"><a name="l00667"></a><span class="lineno">  667</span>&#160;        expandedRect.setTop( rect.top() - top );</div>
<div class="line"><a name="l00668"></a><span class="lineno">  668</span>&#160;        expandedRect.setBottom( rect.bottom() + bottom );</div>
<div class="line"><a name="l00669"></a><span class="lineno">  669</span>&#160;        expandedRect.setLeft( rect.left() - left );</div>
<div class="line"><a name="l00670"></a><span class="lineno">  670</span>&#160;        expandedRect.setRight( rect.right() + right );</div>
<div class="line"><a name="l00671"></a><span class="lineno">  671</span>&#160;    }</div>
<div class="line"><a name="l00672"></a><span class="lineno">  672</span>&#160; </div>
<div class="line"><a name="l00673"></a><span class="lineno">  673</span>&#160;    m_data-&gt;textEngine-&gt;draw( painter, expandedRect,</div>
<div class="line"><a name="l00674"></a><span class="lineno">  674</span>&#160;        m_data-&gt;renderFlags, m_data-&gt;text );</div>
<div class="line"><a name="l00675"></a><span class="lineno">  675</span>&#160; </div>
<div class="line"><a name="l00676"></a><span class="lineno">  676</span>&#160;    painter-&gt;restore();</div>
<div class="line"><a name="l00677"></a><span class="lineno">  677</span>&#160;}</div>
<div class="line"><a name="l00678"></a><span class="lineno">  678</span>&#160; </div>
<div class="line"><a name="l00694"></a><span class="lineno"><a class="line" href="class_qwt_text.html#a053d8fdb4de77bd3b6f2eb0ecd3980ca">  694</a></span>&#160;<span class="keyword">const</span> <a class="code" href="class_qwt_text_engine.html">QwtTextEngine</a>* <a class="code" href="class_qwt_text.html#a053d8fdb4de77bd3b6f2eb0ecd3980ca">QwtText::textEngine</a>( <span class="keyword">const</span> QString&amp; text,</div>
<div class="line"><a name="l00695"></a><span class="lineno">  695</span>&#160;    <a class="code" href="class_qwt_text.html#a63e0d6a59a427a37ed0bfa71b782fd76">QwtText::TextFormat</a> format )</div>
<div class="line"><a name="l00696"></a><span class="lineno">  696</span>&#160;{</div>
<div class="line"><a name="l00697"></a><span class="lineno">  697</span>&#160;    <span class="keywordflow">return</span> TextEngineDict::dict().textEngine( <a class="code" href="class_qwt_text.html#ad94fd632f61b1e5d9f68ce65c445982e">text</a>, format );</div>
<div class="line"><a name="l00698"></a><span class="lineno">  698</span>&#160;}</div>
<div class="line"><a name="l00699"></a><span class="lineno">  699</span>&#160; </div>
<div class="line"><a name="l00713"></a><span class="lineno"><a class="line" href="class_qwt_text.html#aef6a1e71b1feba3116ce69f6c9de70ad">  713</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_qwt_text.html#aef6a1e71b1feba3116ce69f6c9de70ad">QwtText::setTextEngine</a>( <a class="code" href="class_qwt_text.html#a63e0d6a59a427a37ed0bfa71b782fd76">QwtText::TextFormat</a> format,</div>
<div class="line"><a name="l00714"></a><span class="lineno">  714</span>&#160;    <a class="code" href="class_qwt_text_engine.html">QwtTextEngine</a>* engine )</div>
<div class="line"><a name="l00715"></a><span class="lineno">  715</span>&#160;{</div>
<div class="line"><a name="l00716"></a><span class="lineno">  716</span>&#160;    TextEngineDict::dict().setTextEngine( format, engine );</div>
<div class="line"><a name="l00717"></a><span class="lineno">  717</span>&#160;}</div>
<div class="line"><a name="l00718"></a><span class="lineno">  718</span>&#160; </div>
<div class="line"><a name="l00727"></a><span class="lineno"><a class="line" href="class_qwt_text.html#a2828c4976bd30572d236811bc30037be">  727</a></span>&#160;<span class="keyword">const</span> <a class="code" href="class_qwt_text_engine.html">QwtTextEngine</a>* <a class="code" href="class_qwt_text.html#a053d8fdb4de77bd3b6f2eb0ecd3980ca">QwtText::textEngine</a>( <a class="code" href="class_qwt_text.html#a63e0d6a59a427a37ed0bfa71b782fd76">QwtText::TextFormat</a> format )</div>
<div class="line"><a name="l00728"></a><span class="lineno">  728</span>&#160;{</div>
<div class="line"><a name="l00729"></a><span class="lineno">  729</span>&#160;    <span class="keywordflow">return</span> TextEngineDict::dict().textEngine( format );</div>
<div class="line"><a name="l00730"></a><span class="lineno">  730</span>&#160;}</div>
<div class="line"><a name="l00731"></a><span class="lineno">  731</span>&#160; </div>
<div class="line"><a name="l00733"></a><span class="lineno"><a class="line" href="class_qwt_text.html#ad9947790e30eb555a651872ed97757ef">  733</a></span>&#160;<span class="keywordtype">bool</span> <a class="code" href="class_qwt_text.html#ad9947790e30eb555a651872ed97757ef">QwtText::isNull</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00734"></a><span class="lineno">  734</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00735"></a><span class="lineno">  735</span>&#160;    <span class="keywordflow">return</span> m_data-&gt;text.isNull();</div>
<div class="line"><a name="l00736"></a><span class="lineno">  736</span>&#160;}</div>
<div class="line"><a name="l00737"></a><span class="lineno">  737</span>&#160; </div>
<div class="line"><a name="l00739"></a><span class="lineno"><a class="line" href="class_qwt_text.html#aa7a14283b812f50234fa0ee960e65307">  739</a></span>&#160;<span class="keywordtype">bool</span> <a class="code" href="class_qwt_text.html#aa7a14283b812f50234fa0ee960e65307">QwtText::isEmpty</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00740"></a><span class="lineno">  740</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00741"></a><span class="lineno">  741</span>&#160;    <span class="keywordflow">return</span> m_data-&gt;text.isEmpty();</div>
<div class="line"><a name="l00742"></a><span class="lineno">  742</span>&#160;}</div>
<div class="line"><a name="l00743"></a><span class="lineno">  743</span>&#160; </div>
<div class="ttc" id="aclass_q_map_html"><div class="ttname"><a href="class_q_map.html">QMap</a></div><div class="ttdef"><b>Definition:</b> <a href="qwt__compass_8h_source.html#l00019">qwt_compass.h:19</a></div></div>
<div class="ttc" id="aclass_qwt_painter_html_ab77bb84f93f6b422b0b9c106a3991fdc"><div class="ttname"><a href="class_qwt_painter.html#ab77bb84f93f6b422b0b9c106a3991fdc">QwtPainter::drawRect</a></div><div class="ttdeci">static void drawRect(QPainter *, qreal x, qreal y, qreal w, qreal h)</div><div class="ttdoc">Wrapper for QPainter::drawRect()</div><div class="ttdef"><b>Definition:</b> <a href="qwt__painter_8cpp_source.html#l00347">qwt_painter.cpp:347</a></div></div>
<div class="ttc" id="aclass_qwt_painter_html_ae9c82d949cd328f48e4932dad686161b"><div class="ttname"><a href="class_qwt_painter.html#ae9c82d949cd328f48e4932dad686161b">QwtPainter::scaledFont</a></div><div class="ttdeci">static QFont scaledFont(const QFont &amp;, const QPaintDevice *=nullptr)</div><div class="ttdef"><b>Definition:</b> <a href="qwt__painter_8cpp_source.html#l01450">qwt_painter.cpp:1450</a></div></div>
<div class="ttc" id="aclass_qwt_plain_text_engine_html"><div class="ttname"><a href="class_qwt_plain_text_engine.html">QwtPlainTextEngine</a></div><div class="ttdoc">A text engine for plain texts.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__text__engine_8h_source.html#l00111">qwt_text_engine.h:112</a></div></div>
<div class="ttc" id="aclass_qwt_rich_text_engine_html"><div class="ttname"><a href="class_qwt_rich_text_engine.html">QwtRichTextEngine</a></div><div class="ttdoc">A text engine for Qt rich texts.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__text__engine_8h_source.html#l00147">qwt_text_engine.h:148</a></div></div>
<div class="ttc" id="aclass_qwt_text_engine_html"><div class="ttname"><a href="class_qwt_text_engine.html">QwtTextEngine</a></div><div class="ttdoc">Abstract base class for rendering text strings.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__text__engine_8h_source.html#l00030">qwt_text_engine.h:31</a></div></div>
<div class="ttc" id="aclass_qwt_text_engine_html_a98316f2f6f4f50216ceffbe9babe2901"><div class="ttname"><a href="class_qwt_text_engine.html#a98316f2f6f4f50216ceffbe9babe2901">QwtTextEngine::mightRender</a></div><div class="ttdeci">virtual bool mightRender(const QString &amp;text) const =0</div></div>
<div class="ttc" id="aclass_qwt_text_html"><div class="ttname"><a href="class_qwt_text.html">QwtText</a></div><div class="ttdoc">A class representing a text.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__text_8h_source.html#l00051">qwt_text.h:52</a></div></div>
<div class="ttc" id="aclass_qwt_text_html_a053d8fdb4de77bd3b6f2eb0ecd3980ca"><div class="ttname"><a href="class_qwt_text.html#a053d8fdb4de77bd3b6f2eb0ecd3980ca">QwtText::textEngine</a></div><div class="ttdeci">static const QwtTextEngine * textEngine(const QString &amp;text, QwtText::TextFormat=AutoText)</div><div class="ttdef"><b>Definition:</b> <a href="qwt__text_8cpp_source.html#l00694">qwt_text.cpp:694</a></div></div>
<div class="ttc" id="aclass_qwt_text_html_a0953aabc098f410dba89bbada47f2e5a"><div class="ttname"><a href="class_qwt_text.html#a0953aabc098f410dba89bbada47f2e5a">QwtText::LayoutAttribute</a></div><div class="ttdeci">LayoutAttribute</div><div class="ttdoc">Layout Attributes The layout attributes affects some aspects of the layout of the text.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__text_8h_source.html#l00132">qwt_text.h:133</a></div></div>
<div class="ttc" id="aclass_qwt_text_html_a0953aabc098f410dba89bbada47f2e5aa35990c4c74747580e9357d490ebce42f"><div class="ttname"><a href="class_qwt_text.html#a0953aabc098f410dba89bbada47f2e5aa35990c4c74747580e9357d490ebce42f">QwtText::MinimumLayout</a></div><div class="ttdeci">@ MinimumLayout</div><div class="ttdef"><b>Definition:</b> <a href="qwt__text_8h_source.html#l00141">qwt_text.h:140</a></div></div>
<div class="ttc" id="aclass_qwt_text_html_a09bb31bf999e2b6a88bc76f0b9626029"><div class="ttname"><a href="class_qwt_text.html#a09bb31bf999e2b6a88bc76f0b9626029">QwtText::operator==</a></div><div class="ttdeci">bool operator==(const QwtText &amp;) const</div><div class="ttdoc">Relational operator.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__text_8cpp_source.html#l00250">qwt_text.cpp:250</a></div></div>
<div class="ttc" id="aclass_qwt_text_html_a0f23d507c59b16d81b96ecf1e79131a8"><div class="ttname"><a href="class_qwt_text.html#a0f23d507c59b16d81b96ecf1e79131a8">QwtText::backgroundBrush</a></div><div class="ttdeci">QBrush backgroundBrush() const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__text_8cpp_source.html#l00451">qwt_text.cpp:451</a></div></div>
<div class="ttc" id="aclass_qwt_text_html_a19bc6e3baa215dccab7993cd211ed975"><div class="ttname"><a href="class_qwt_text.html#a19bc6e3baa215dccab7993cd211ed975">QwtText::usedColor</a></div><div class="ttdeci">QColor usedColor(const QColor &amp;) const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__text_8cpp_source.html#l00386">qwt_text.cpp:386</a></div></div>
<div class="ttc" id="aclass_qwt_text_html_a1ba10b4e535424a5ecedda45e0eff0b5"><div class="ttname"><a href="class_qwt_text.html#a1ba10b4e535424a5ecedda45e0eff0b5">QwtText::QwtText</a></div><div class="ttdeci">QwtText()</div><div class="ttdef"><b>Definition:</b> <a href="qwt__text_8cpp_source.html#l00201">qwt_text.cpp:201</a></div></div>
<div class="ttc" id="aclass_qwt_text_html_a2b621d3104ead2185d2d939b1f5b9d68"><div class="ttname"><a href="class_qwt_text.html#a2b621d3104ead2185d2d939b1f5b9d68">QwtText::setLayoutAttribute</a></div><div class="ttdeci">void setLayoutAttribute(LayoutAttribute, bool on=true)</div><div class="ttdef"><b>Definition:</b> <a href="qwt__text_8cpp_source.html#l00494">qwt_text.cpp:494</a></div></div>
<div class="ttc" id="aclass_qwt_text_html_a390f10d5fccfb7070fe0c1ace8fdd0ce"><div class="ttname"><a href="class_qwt_text.html#a390f10d5fccfb7070fe0c1ace8fdd0ce">QwtText::testPaintAttribute</a></div><div class="ttdeci">bool testPaintAttribute(PaintAttribute) const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__text_8cpp_source.html#l00482">qwt_text.cpp:482</a></div></div>
<div class="ttc" id="aclass_qwt_text_html_a40ec54788db82cfb2941cff8c4621c15"><div class="ttname"><a href="class_qwt_text.html#a40ec54788db82cfb2941cff8c4621c15">QwtText::textSize</a></div><div class="ttdeci">QSizeF textSize() const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__text_8cpp_source.html#l00570">qwt_text.cpp:570</a></div></div>
<div class="ttc" id="aclass_qwt_text_html_a4284800d239934818c1951381ff52d05"><div class="ttname"><a href="class_qwt_text.html#a4284800d239934818c1951381ff52d05">QwtText::renderFlags</a></div><div class="ttdeci">int renderFlags() const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__text_8cpp_source.html#l00317">qwt_text.cpp:317</a></div></div>
<div class="ttc" id="aclass_qwt_text_html_a5d75098c287af25e35111c73f166d3ce"><div class="ttname"><a href="class_qwt_text.html#a5d75098c287af25e35111c73f166d3ce">QwtText::borderRadius</a></div><div class="ttdeci">double borderRadius() const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__text_8cpp_source.html#l00409">qwt_text.cpp:409</a></div></div>
<div class="ttc" id="aclass_qwt_text_html_a63e0d6a59a427a37ed0bfa71b782fd76"><div class="ttname"><a href="class_qwt_text.html#a63e0d6a59a427a37ed0bfa71b782fd76">QwtText::TextFormat</a></div><div class="ttdeci">TextFormat</div><div class="ttdoc">Text format.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__text_8h_source.html#l00064">qwt_text.h:65</a></div></div>
<div class="ttc" id="aclass_qwt_text_html_a63e0d6a59a427a37ed0bfa71b782fd76a0645d333081ec9e3574c98f510c284a1"><div class="ttname"><a href="class_qwt_text.html#a63e0d6a59a427a37ed0bfa71b782fd76a0645d333081ec9e3574c98f510c284a1">QwtText::AutoText</a></div><div class="ttdeci">@ AutoText</div><div class="ttdef"><b>Definition:</b> <a href="qwt__text_8h_source.html#l00072">qwt_text.h:72</a></div></div>
<div class="ttc" id="aclass_qwt_text_html_a63e0d6a59a427a37ed0bfa71b782fd76a88f7eee487ce6f7769b67494623d8b79"><div class="ttname"><a href="class_qwt_text.html#a63e0d6a59a427a37ed0bfa71b782fd76a88f7eee487ce6f7769b67494623d8b79">QwtText::RichText</a></div><div class="ttdeci">@ RichText</div><div class="ttdoc">Use the Scribe framework (Qt Rich Text) to render the text.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__text_8h_source.html#l00078">qwt_text.h:78</a></div></div>
<div class="ttc" id="aclass_qwt_text_html_a63e0d6a59a427a37ed0bfa71b782fd76aa6810f6d3c785c202d2507c601b97787"><div class="ttname"><a href="class_qwt_text.html#a63e0d6a59a427a37ed0bfa71b782fd76aa6810f6d3c785c202d2507c601b97787">QwtText::PlainText</a></div><div class="ttdeci">@ PlainText</div><div class="ttdoc">Draw the text as it is, using a QwtPlainTextEngine.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__text_8h_source.html#l00075">qwt_text.h:75</a></div></div>
<div class="ttc" id="aclass_qwt_text_html_a67039ac189d3a9683801851ac70e87a6"><div class="ttname"><a href="class_qwt_text.html#a67039ac189d3a9683801851ac70e87a6">QwtText::font</a></div><div class="ttdeci">QFont font() const</div><div class="ttdoc">Return the font.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__text_8cpp_source.html#l00336">qwt_text.cpp:336</a></div></div>
<div class="ttc" id="aclass_qwt_text_html_a731bc1eca7825f55f3026f840c0fa42f"><div class="ttname"><a href="class_qwt_text.html#a731bc1eca7825f55f3026f840c0fa42f">QwtText::color</a></div><div class="ttdeci">QColor color() const</div><div class="ttdoc">Return the pen color, used for painting the text.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__text_8cpp_source.html#l00372">qwt_text.cpp:372</a></div></div>
<div class="ttc" id="aclass_qwt_text_html_a7c62dfe82aa94f113cd4f8702bd2242c"><div class="ttname"><a href="class_qwt_text.html#a7c62dfe82aa94f113cd4f8702bd2242c">QwtText::setBorderRadius</a></div><div class="ttdeci">void setBorderRadius(double)</div><div class="ttdef"><b>Definition:</b> <a href="qwt__text_8cpp_source.html#l00400">qwt_text.cpp:400</a></div></div>
<div class="ttc" id="aclass_qwt_text_html_a805159bacb9298cfabbaed30f9676af2"><div class="ttname"><a href="class_qwt_text.html#a805159bacb9298cfabbaed30f9676af2">QwtText::LayoutAttributes</a></div><div class="ttdeci">QFlags&lt; LayoutAttribute &gt; LayoutAttributes</div><div class="ttdef"><b>Definition:</b> <a href="qwt__text_8h_source.html#l00143">qwt_text.h:143</a></div></div>
<div class="ttc" id="aclass_qwt_text_html_a9739e47ea489e690f121e4b1d27ae24e"><div class="ttname"><a href="class_qwt_text.html#a9739e47ea489e690f121e4b1d27ae24e">QwtText::PaintAttribute</a></div><div class="ttdeci">PaintAttribute</div><div class="ttdoc">Paint Attributes.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__text_8h_source.html#l00114">qwt_text.h:115</a></div></div>
<div class="ttc" id="aclass_qwt_text_html_a9739e47ea489e690f121e4b1d27ae24ea1aa48cee0a54089820e77600cf93dc4b"><div class="ttname"><a href="class_qwt_text.html#a9739e47ea489e690f121e4b1d27ae24ea1aa48cee0a54089820e77600cf93dc4b">QwtText::PaintUsingTextColor</a></div><div class="ttdeci">@ PaintUsingTextColor</div><div class="ttdoc">The text has an individual color.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__text_8h_source.html#l00120">qwt_text.h:120</a></div></div>
<div class="ttc" id="aclass_qwt_text_html_a9739e47ea489e690f121e4b1d27ae24ea77dd66b2a65e9998d9803672791e1456"><div class="ttname"><a href="class_qwt_text.html#a9739e47ea489e690f121e4b1d27ae24ea77dd66b2a65e9998d9803672791e1456">QwtText::PaintBackground</a></div><div class="ttdeci">@ PaintBackground</div><div class="ttdoc">The text has an individual background.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__text_8h_source.html#l00124">qwt_text.h:123</a></div></div>
<div class="ttc" id="aclass_qwt_text_html_a9739e47ea489e690f121e4b1d27ae24eac12e48f17fd02a6bc1840c61c4862a65"><div class="ttname"><a href="class_qwt_text.html#a9739e47ea489e690f121e4b1d27ae24eac12e48f17fd02a6bc1840c61c4862a65">QwtText::PaintUsingTextFont</a></div><div class="ttdeci">@ PaintUsingTextFont</div><div class="ttdoc">The text has an individual font.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__text_8h_source.html#l00117">qwt_text.h:117</a></div></div>
<div class="ttc" id="aclass_qwt_text_html_a9ba9caa82fcfbc4bfbf8ce20ccea981e"><div class="ttname"><a href="class_qwt_text.html#a9ba9caa82fcfbc4bfbf8ce20ccea981e">QwtText::setText</a></div><div class="ttdeci">void setText(const QString &amp;, QwtText::TextFormat textFormat=AutoText)</div><div class="ttdef"><b>Definition:</b> <a href="qwt__text_8cpp_source.html#l00277">qwt_text.cpp:277</a></div></div>
<div class="ttc" id="aclass_qwt_text_html_aa7a14283b812f50234fa0ee960e65307"><div class="ttname"><a href="class_qwt_text.html#aa7a14283b812f50234fa0ee960e65307">QwtText::isEmpty</a></div><div class="ttdeci">bool isEmpty() const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__text_8cpp_source.html#l00739">qwt_text.cpp:739</a></div></div>
<div class="ttc" id="aclass_qwt_text_html_aac80e3f05137173059b196206ceea9e8"><div class="ttname"><a href="class_qwt_text.html#aac80e3f05137173059b196206ceea9e8">QwtText::setPaintAttribute</a></div><div class="ttdeci">void setPaintAttribute(PaintAttribute, bool on=true)</div><div class="ttdef"><b>Definition:</b> <a href="qwt__text_8cpp_source.html#l00466">qwt_text.cpp:466</a></div></div>
<div class="ttc" id="aclass_qwt_text_html_ab00c5b829e19d18d96d296840b3de5d8"><div class="ttname"><a href="class_qwt_text.html#ab00c5b829e19d18d96d296840b3de5d8">QwtText::operator!=</a></div><div class="ttdeci">bool operator!=(const QwtText &amp;) const</div><div class="ttdoc">Relational operator.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__text_8cpp_source.html#l00264">qwt_text.cpp:264</a></div></div>
<div class="ttc" id="aclass_qwt_text_html_aba243ac11b91979ad3f2ee7d3c700195"><div class="ttname"><a href="class_qwt_text.html#aba243ac11b91979ad3f2ee7d3c700195">QwtText::~QwtText</a></div><div class="ttdeci">~QwtText()</div><div class="ttdoc">Destructor.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__text_8cpp_source.html#l00235">qwt_text.cpp:235</a></div></div>
<div class="ttc" id="aclass_qwt_text_html_ac7de5839a5c3b1ee367cfbd5691aa105"><div class="ttname"><a href="class_qwt_text.html#ac7de5839a5c3b1ee367cfbd5691aa105">QwtText::setColor</a></div><div class="ttdeci">void setColor(const QColor &amp;)</div><div class="ttdef"><b>Definition:</b> <a href="qwt__text_8cpp_source.html#l00365">qwt_text.cpp:365</a></div></div>
<div class="ttc" id="aclass_qwt_text_html_aca4dd700b7a182114a8c0eb864c4ec2f"><div class="ttname"><a href="class_qwt_text.html#aca4dd700b7a182114a8c0eb864c4ec2f">QwtText::setBorderPen</a></div><div class="ttdeci">void setBorderPen(const QPen &amp;)</div><div class="ttdef"><b>Definition:</b> <a href="qwt__text_8cpp_source.html#l00420">qwt_text.cpp:420</a></div></div>
<div class="ttc" id="aclass_qwt_text_html_ad071f3c4fae4512a1cc71554d95eb69a"><div class="ttname"><a href="class_qwt_text.html#ad071f3c4fae4512a1cc71554d95eb69a">QwtText::setFont</a></div><div class="ttdeci">void setFont(const QFont &amp;)</div><div class="ttdef"><b>Definition:</b> <a href="qwt__text_8cpp_source.html#l00329">qwt_text.cpp:329</a></div></div>
<div class="ttc" id="aclass_qwt_text_html_ad4a8678071c7e114c47a21f1f78cca37"><div class="ttname"><a href="class_qwt_text.html#ad4a8678071c7e114c47a21f1f78cca37">QwtText::operator=</a></div><div class="ttdeci">QwtText &amp; operator=(const QwtText &amp;)</div><div class="ttdoc">Assignment operator.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__text_8cpp_source.html#l00242">qwt_text.cpp:242</a></div></div>
<div class="ttc" id="aclass_qwt_text_html_ad6b2a300b29b5f0ee90289e962c68f39"><div class="ttname"><a href="class_qwt_text.html#ad6b2a300b29b5f0ee90289e962c68f39">QwtText::testLayoutAttribute</a></div><div class="ttdeci">bool testLayoutAttribute(LayoutAttribute) const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__text_8cpp_source.html#l00510">qwt_text.cpp:510</a></div></div>
<div class="ttc" id="aclass_qwt_text_html_ad81ee227016361a0362081bc67c301da"><div class="ttname"><a href="class_qwt_text.html#ad81ee227016361a0362081bc67c301da">QwtText::draw</a></div><div class="ttdeci">void draw(QPainter *painter, const QRectF &amp;rect) const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__text_8cpp_source.html#l00615">qwt_text.cpp:615</a></div></div>
<div class="ttc" id="aclass_qwt_text_html_ad94fd632f61b1e5d9f68ce65c445982e"><div class="ttname"><a href="class_qwt_text.html#ad94fd632f61b1e5d9f68ce65c445982e">QwtText::text</a></div><div class="ttdeci">QString text() const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__text_8cpp_source.html#l00289">qwt_text.cpp:289</a></div></div>
<div class="ttc" id="aclass_qwt_text_html_ad9947790e30eb555a651872ed97757ef"><div class="ttname"><a href="class_qwt_text.html#ad9947790e30eb555a651872ed97757ef">QwtText::isNull</a></div><div class="ttdeci">bool isNull() const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__text_8cpp_source.html#l00733">qwt_text.cpp:733</a></div></div>
<div class="ttc" id="aclass_qwt_text_html_ae35175c671a39f4fae178c162a5a8132"><div class="ttname"><a href="class_qwt_text.html#ae35175c671a39f4fae178c162a5a8132">QwtText::PaintAttributes</a></div><div class="ttdeci">QFlags&lt; PaintAttribute &gt; PaintAttributes</div><div class="ttdef"><b>Definition:</b> <a href="qwt__text_8h_source.html#l00126">qwt_text.h:126</a></div></div>
<div class="ttc" id="aclass_qwt_text_html_aef6a1e71b1feba3116ce69f6c9de70ad"><div class="ttname"><a href="class_qwt_text.html#aef6a1e71b1feba3116ce69f6c9de70ad">QwtText::setTextEngine</a></div><div class="ttdeci">static void setTextEngine(QwtText::TextFormat, QwtTextEngine *)</div><div class="ttdef"><b>Definition:</b> <a href="qwt__text_8cpp_source.html#l00713">qwt_text.cpp:713</a></div></div>
<div class="ttc" id="aclass_qwt_text_html_af016a747b234aede9f0cbbeb06ed2802"><div class="ttname"><a href="class_qwt_text.html#af016a747b234aede9f0cbbeb06ed2802">QwtText::setBackgroundBrush</a></div><div class="ttdeci">void setBackgroundBrush(const QBrush &amp;)</div><div class="ttdef"><b>Definition:</b> <a href="qwt__text_8cpp_source.html#l00441">qwt_text.cpp:441</a></div></div>
<div class="ttc" id="aclass_qwt_text_html_afa094ef46da5cc2856538297a249e65f"><div class="ttname"><a href="class_qwt_text.html#afa094ef46da5cc2856538297a249e65f">QwtText::borderPen</a></div><div class="ttdeci">QPen borderPen() const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__text_8cpp_source.html#l00430">qwt_text.cpp:430</a></div></div>
<div class="ttc" id="aclass_qwt_text_html_afc82666c1dd9ede2445c981a2a835171"><div class="ttname"><a href="class_qwt_text.html#afc82666c1dd9ede2445c981a2a835171">QwtText::heightForWidth</a></div><div class="ttdeci">double heightForWidth(double width) const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__text_8cpp_source.html#l00522">qwt_text.cpp:522</a></div></div>
<div class="ttc" id="aclass_qwt_text_html_afcbaa37913afaa0e92a649923cfe500b"><div class="ttname"><a href="class_qwt_text.html#afcbaa37913afaa0e92a649923cfe500b">QwtText::setRenderFlags</a></div><div class="ttdeci">void setRenderFlags(int)</div><div class="ttdoc">Change the render flags.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__text_8cpp_source.html#l00304">qwt_text.cpp:304</a></div></div>
<div class="ttc" id="aclass_qwt_text_html_affd35b4cd92e45659b895c5614e3eedd"><div class="ttname"><a href="class_qwt_text.html#affd35b4cd92e45659b895c5614e3eedd">QwtText::usedFont</a></div><div class="ttdeci">QFont usedFont(const QFont &amp;) const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__text_8cpp_source.html#l00350">qwt_text.cpp:350</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><b>qwt_text.cpp</b></li>
    <li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
